package jiang.web.controller.recruit;

import java.util.List;

import jiang.app.entity.Candidate;
import jiang.app.service.OverviewService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class OverviewController {
	@Autowired
	OverviewService overviewService;
	
	@RequestMapping(value = "/manage/recruit/overview")
	public String index(Model m){
		List<Candidate> list = overviewService.findAllCandidates();
		m.addAttribute("candidates", list);
		return "recruit/overview";
	}
}
